home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / asm32.zip / E32.ZIP / ROWCOUNT.ASM < prev    next >
Assembly Source File  |  1996-01-17  |  556b  |  35 lines

  1. ; ROWCOUNT.ASM for E32 - Copyright (C) 1994 Douglas Herr
  2. ;  all rights reserved
  3.  
  4. include    model.inc
  5.  
  6. public    rowcount
  7. extrn    strncount:near
  8. extrn    working:near
  9.  
  10. include    dataseg.inc
  11. extrn    file_row:dword
  12. extrn    count_start:dword
  13. extrn    count_bytes:dword
  14.  
  15. cr    db 13,0
  16. @curseg    ends
  17.  
  18. include    codeseg.inc
  19. rowcount    proc    near
  20.     call    working            ; MUST BE FIRST INSTRUCTION OF SUB
  21.     push    es
  22.     push    fs
  23.     pop    es
  24.     mov    edi,count_start
  25.     mov    ecx,count_bytes
  26.     lea    esi,cr
  27.     call    strncount
  28.     add    file_row,eax
  29.     pop    es
  30.     ret
  31. rowcount    endp
  32.  
  33. @curseg    ends
  34.     end
  35.